package com.wolf.consumer.controller;

import com.wolf.IUserService;
import com.wolf.annotation.WolfReference;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auth: dylan
 * @Desc:
 * @Time: 2024/5/2
 */
@RestController
public class RpcTestController {
    @WolfReference
    private IUserService userService;

    @GetMapping("test/rpc")
    public ResponseEntity testRpc(){
        String result = userService.hello("dylan");
        return ResponseEntity.ok(result);
    }
}
